package by.admonko.universaltesting.services;

import java.util.List;
import java.util.Set;

import org.springframework.transaction.annotation.Transactional;

import by.admonko.universaltesting.datamodel.Test;
import by.admonko.universaltesting.datamodel.UserGroup;
import by.admonko.universaltesting.datamodel.UserTbl;

public interface TestService {
	@Transactional
	Test getTest(Integer id);

	@Transactional
	List<Test> getAllTest();

	@Transactional
	List<Test> getTestByGroup(Set<UserGroup> usGroup);

	@Transactional
	List<Test> getTestByOwner(UserTbl user);

	@Transactional
	void setTest(Test test);

	@Transactional
	void updateTest(Test test);

	@Transactional
	void removeTest(Integer id);

	@Transactional
	void removeTestList(List<Integer> list);

}
